package com.banksoft.admin.entity;

import com.banksoft.util.DateUtil;

/**
 * Created by vanjoger on 2016/8/2.
 */
public class User {

    private String id;
    private String account;//账号
    private String openId;
    private String password;
    private String nickName;
    private String mobile;
    private String birthday;
    private String sex;//1：男  2：女  0：未知
    private String city;
    private String country;
    private String province;
    private String headimgUrl;
    private String recommendId;//推荐人
    private String type;//代理商类型 MemberType
    private String isPartner;//是否区域合伙人  0:否   1:是
    private String isMember;//是否是正式会员  0:否  1：是
    private Long partnerDate;//成为区域合伙人的时间
    private String status;//Status
    private Long createTime;
    private String dateStr;
    private String isShare;//是否分享  Enable
    private String img;//二维码图片地址
    private String userLevel;//区域合伙人代理商  0:省 1：副省级  2:地市  3：区域
    private String userProvince;//如果是区域合伙人的话  所负责的省份
    private String userProvinceName;
    private String userCity;//如果是区域合伙人的话  所负责的地市
    private String userCityName;
    private String userArea;//如果是区域合伙人的话  所负责的区县
    private String userAreaName;
    private String idCard;//身份证号
    private String bankName;//银行名称
    private String cardName;//持卡人名称
    private String cardNo;//银行卡号
    private String partnerDateStr;
    private Long lastLoginTime;

    private int subSize;//下级人数
    private int orders;
    private String tdyj;//团队业绩

    public int getOrders() {
        return orders;
    }

    public void setOrders(int orders) {
        this.orders = orders;
    }

    public String getTdyj() {
        return tdyj;
    }

    public void setTdyj(String tdyj) {
        this.tdyj = tdyj;
    }

    public String getBirthday() {
        return birthday;
    }

    public void setBirthday(String birthday) {
        this.birthday = birthday;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public int getSubSize() {
        return subSize;
    }

    public void setSubSize(int subSize) {
        this.subSize = subSize;
    }

    public String getIsMember() {
        return isMember;
    }

    public void setIsMember(String isMember) {
        this.isMember = isMember;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getBankName() {
        return bankName;
    }

    public void setBankName(String bankName) {
        this.bankName = bankName;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public String getCardNo() {
        return cardNo;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public String getPartnerDateStr() {
        if(partnerDate!=null)
            return DateUtil.getDateFromLong(partnerDate);
        return partnerDateStr;
    }

    public void setPartnerDateStr(String partnerDateStr) {
        this.partnerDateStr = partnerDateStr;
    }

    public String getIsPartner() {
        return isPartner;
    }

    public void setIsPartner(String isPartner) {
        this.isPartner = isPartner;
    }

    public Long getPartnerDate() {
        return partnerDate;
    }

    public void setPartnerDate(Long partnerDate) {
        this.partnerDate = partnerDate;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserLevel() {
        return userLevel;
    }

    public void setUserLevel(String userLevel) {
        this.userLevel = userLevel;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public Long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Long createTime) {
        this.createTime = createTime;
    }

    public String getDateStr() {
        if(createTime!=null)
            return DateUtil.getDateFromLong(createTime);
        return dateStr;
    }

    public void setDateStr(String dateStr) {
        this.dateStr = dateStr;
    }

    public String getIsShare() {
        return isShare;
    }

    public void setIsShare(String isShare) {
        this.isShare = isShare;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getRecommendId() {
        return recommendId;
    }

    public void setRecommendId(String recommendId) {
        this.recommendId = recommendId;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getOpenId() {
        return openId;
    }

    public void setOpenId(String openId) {
        this.openId = openId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getHeadimgUrl() {
        return headimgUrl;
    }

    public void setHeadimgUrl(String headimgUrl) {
        this.headimgUrl = headimgUrl;
    }

    public String getUserProvince() {
        return userProvince;
    }

    public void setUserProvince(String userProvince) {
        this.userProvince = userProvince;
    }

    public String getUserCity() {
        return userCity;
    }

    public void setUserCity(String userCity) {
        this.userCity = userCity;
    }

    public String getUserArea() {
        return userArea;
    }

    public void setUserArea(String userArea) {
        this.userArea = userArea;
    }

    public String getUserProvinceName() {
        return userProvinceName;
    }

    public void setUserProvinceName(String userProvinceName) {
        this.userProvinceName = userProvinceName;
    }

    public String getUserCityName() {
        return userCityName;
    }

    public void setUserCityName(String userCityName) {
        this.userCityName = userCityName;
    }

    public String getUserAreaName() {
        return userAreaName;
    }

    public void setUserAreaName(String userAreaName) {
        this.userAreaName = userAreaName;
    }

    public Long getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Long lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
}
